package com.xiaoxiang.mall.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaoxiang.mall.dao.ShoppingCartDao;
import com.xiaoxiang.mall.entity.ShoppingCart;
import com.xiaoxiang.mall.result.ShoppingCartResult;
import com.xiaoxiang.mall.service.ShoppingCartService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (ShoppingCart)表服务实现类
 *
 * @author haha
 * @since 2022-03-29 13:23:08
 */
@Service("shoppingCartService")
public class ShoppingCartServiceImpl extends ServiceImpl<ShoppingCartDao, ShoppingCart> implements ShoppingCartService {

    @Override
    public List<ShoppingCartResult> getAllByUserId(Long userId) {
        return baseMapper.getAllByUserId(userId);
    }
}
